# ------------------------------------------
# Makefile for RAS robots test program
# by Mattias Bratt
# ------------------------------------------

include Makeincl

OBJS = trackdemo.o helper.o imageproc.o

.c.o:
	${CC68} -c -Wall $*.c

all:	track.hex

${OBJS}:	Makeincl Makefile *.h

# Use lots of optimization to speed image processing up (-O3) 
imageproc.o: 	imageproc.c Makeincl Makefile *.h
	${CC68} -Wall -O3 -c $*.c

track.hex:	${OBJS}
		${CC68} -o track.hex ${OBJS}

clean:
	-$(RM) ${OBJS} core map
	-$(RM) *.elf *.hex

